package com.example.demo.flux.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "demoClient", url = "http://localhost:8080/demo")
public interface DemoClient {
    @GetMapping("status")
    String remoteHi(@RequestParam(name = "name") String name);

    @GetMapping("slowCall")
    String slowCall(@RequestParam(name = "name") String name);
}
